package com.tongji.seller.events
{
	
	import com.tongji.seller.view.twoD.Furniture;
	
	import flash.display.BitmapData;
	import flash.events.Event;
	
	/**
	 * 
	 * @author chenzhongyuan
	 * 2011-8-18
	 */
	
	public class ChangePropertyEvent extends Event
	{
		public static const CHANGE_FURNITURE:String = "changeFurniture";
		public static const ENLARGE_FURNITURE:String = "enlargeFurniture";
		public static const SHRINK_FURNITURE:String = "shrinkFurniture";
		//public static const DELETE_FURNITURE:String = "deleteAFurniture";
		public static const SWITCH_FURNITURE:String = "switchFurniture";
		
		public var fur:Furniture;
		/**
		 * 控制用户产品的属性
		 * @param type
		 * CHANGE_PICTURE:控制titleWindow
		 * ENLARGE_FURNITURE:放大
		 * SHRINK_FURNITURE:缩小
		 * DELETE_FURNITURE:删除
		 */		
		public function ChangePropertyEvent(type:String, fur:Furniture = null):void
		{
			super(type, true);
			this.fur = fur;
		}
		
		override public function clone():Event
		{
			return new ChangePropertyEvent(type, fur);
		}
	}
}